package com.hb.trade.server.project.deal.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hb.core.pojo.parent.PageResult;
import com.hb.core.pojo.project.deal.dto.BidCandidateDTO;
import com.hb.core.pojo.project.deal.dto.BidCandidateSectionDTO;
import com.hb.core.pojo.project.deal.entity.BidCandidateSection;
import com.hb.core.pojo.project.section.dto.BidSectionDTO;
import com.hb.core.pojo.project.section.entity.BidSection;

import java.util.List;

/**
 * 中标候选人公示-标段对应关系Service
 *
 * @author Lix1ang
 * @date 2021-12-28 14:16:44
 */
public interface BidCandidateSectionService extends IService<BidCandidateSection> {

    /**
     * 获取未被关联的标段
     *
     * @param bidCandidateDTO
     * @return
     */
    PageResult<BidSection> getSectionNotSelected(BidCandidateDTO bidCandidateDTO);

    /**
     * 根据候选人公示Id查询关联的标段
     *
     * @param candidateId
     * @return
     */
    PageResult<BidCandidateSectionDTO> listSectionByCandidateId(Page page, Long candidateId);

    /**
     *
     * @Description:根据中标候选人id查询列表
     * @Author: zhongdl
     * @Date:2022/3/10 18:03
     * @param candidateId:
     * @return: {@link List< BidCandidateSection> }
     **/
    List<BidCandidateSection> listBidCandidateByCandidateId(Long candidateId);

}
